package common.consts;

/**
 * Created by aceyin on 2015/5/31 0031.
 */
public enum ResponseStatus {

    SUCCESS(1), FAIL(0), INVALID_REQUEST(-1);

    public final int code;

    ResponseStatus(int code) {
        this.code = code;
    }

    public boolean isSuccess(ResponseStatus status) {
        return status == SUCCESS;
    }

}
